﻿@using SanalMagaza.Model.Extentions
@using SanalMagaza.Model.ViewModel
@model IList<SanalMagaza.Model.Product>
<div id="products">
    <ul class="order">
        <li><a href="@Url.Action("List", "Product", new ProductFilter(ProductOrder.Title, Request.Params["ProductOrder"], Request.Params["OrderDir"]))">
                Başlığa göre Sırala </a></li>

        <li><a href="@Url.Action("List", "Product", new ProductFilter(ProductOrder.Category, Request.Params["ProductOrder"], Request.Params["OrderDir"]))">
                Kategoriye göre Sırala </a></li>

        <li><a href="@Url.Action("List", "Product", new ProductFilter(ProductOrder.Price, Request.Params["ProductOrder"], Request.Params["OrderDir"]))">
                Fiyata göre Sırala </a></li>

    </ul>
    <div class="clear"></div>
    <article class="group">
        <h3>TÜM ÜRÜNLER</h3>
        @foreach (var item in Model)
        {
            <p class="product">
                @item.Title
                <img width="110px" src="@Model.GetDefaultImage(item.Id)" />
                <span class="price">@item.Price</span>
                <a href="@Url.Action("Detail", "Product", new { id = item.Seo })" class="incele">İncele</a>
                <span class="corner"></span>
            </p>
        }
    </article>
    @*<div class="pagination">
        <span>Sayfa 1/438</span> <span class="current">1</span> <a href="#2">2</a> <a href="#3">
            3</a> <a href="#2">Sonraki &raquo;</a> <a href="#150">150</a> <a href="#300">300</a>
        <a href="#438">Son Sayfa &raquo;</a>
    </div>*@
</div>
